<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" step="0.01" readonly name="row[price]" type="number" value="{$row.price|htmlentities}">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_no" data-rule="required" class="form-control" name="row[order_no]" type="text" value="{$row.order_no|htmlentities}">
        </div>
    </div> -->
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Transaction_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-transaction_id" data-rule="required" data-source="transaction/index" class="form-control selectpage" name="row[transaction_id]" type="text" value="{$row.transaction_id|htmlentities}">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tui_order_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tui_order_no" data-rule="required" readonly class="form-control" name="row[tui_order_no]" type="text" value="{$row.tui_order_no|htmlentities}">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ispay')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-ispay" class="form-control selectpicker" name="row[ispay]">
                {foreach name="ispayList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.ispay"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div> -->
    
   
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('申请时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-add_time" class="form-control datetimepicker" readonly data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[add_time]" type="text" value="{:$row.add_time?datetime($row.add_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('退款审核状态')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <input class="form-control" readonly disabled type="text" 
            {if condition="$row['authen_tui'] eq '1'"} value="审核中" {/if} 
            {if condition="$row['authen_tui'] eq '2'"} value="已通过" {/if}
            {if condition="$row['authen_tui'] eq '3'"} value="未通过" {/if}>

        </div>
    </div>
    {if condition="$row['authen_tui'] eq '1'"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Authen_tui')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-authen_tui" class="form-control selectpicker" name="row[authen_tui]">
                
                <option value="2">通过</option>
                <option value="3">拒绝</option>
            </select>

        </div>
    </div>
    {/if}
    <div class="form-group" id="reason" {if condition="$row['authen_tui'] neq '3'"} style="display: none;" {/if}>
        <label class="control-label col-xs-12 col-sm-2">{:__('Reason')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reason" class="form-control" name="row[reason]" type="text" value="{$row.reason|htmlentities}" autocomplete="off">
            <div style="height:110px;">
                <div id="reason_input_select" class="input_select" style="display: none;">
                    <ul>
                        {volist name="reason_list" id="rv"}
                        <li class="reason_input_select_li">{$rv.reason}</li>
                        {/volist}
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <style type="text/css">
        .input_select{
            width: 100%;
            max-height: 100px;
            overflow-y: auto;
            margin-top: 10px;
            background-color: #ffffff;
            box-shadow: 2px 2px 10px 0px #f1f1f1;
        }
        .input_select ul{
            width: 100%;
            padding: 0;
            margin: 0;
        }
        .input_select ul li{
            width: 100%;
            padding: 5px;
            font-size: 15px;
            color: #000000;
            list-style-type: none;
            cursor: pointer;
        }
        .input_select ul li:hover{
            color: #217EFE;
            background-color: rgba(225,227,233,0.8);
        }
    </style>
    {if condition="$row['authen_tui'] neq '1'"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Authen_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-authen_time" readonly class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[authen_time]" type="text" value="{:$row.authen_time?datetime($row.authen_time):''}">
        </div>
    </div>
    {/if}
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pay_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pay_time]" type="text" value="{:$row.pay_time?datetime($row.pay_time):''}">
        </div>
    </div> -->
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-type" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div> -->
    {if condition="$row['authen_tui'] eq '1'"}
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
    {/if}
</form>
